<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class=""> <!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <meta property="qc:admins" content="63350727776371646636" />
  
  
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  <title> SwiftV课堂 - 中国最大的Swift视频学习站</title>
  <meta name="keywords" content="swift,swift 教程,swift视频,swift论坛,swiftv课堂,swift培训,swift开发,ios8 开发,ios9 编程" />
  <meta name="description" content="SwiftV课堂是国内氛围最好的swift学习、交流网站，提供上千套swift视频,swift教程免费观看，学Swift开发(iOS10 开发)就上SwiftV课堂。" />
  <link rel="shortcut icon" type="image/x-icon" href="http://static.vlms.cn/images/2014/08/hyjpep4o.png" media="screen" />
  
  <link href="http://static.vlms.cn/resources/bootstrap/css/bootstrap.css" rel="stylesheet" />
  <link rel="stylesheet" media="screen" href="http://static.vlms.cn/resources/bootstrap/css/bootstrap-extends.css" />
  
  <!-- 预览、自定义、默认css样式  -->
  	<link rel="stylesheet" media="screen" href="http://static.vlms.cn/resources/css/schoolweb.css" />
  
  <!-- 回到顶部样式  -->
  <link rel="stylesheet" media="screen" href="http://static.vlms.cn/resources/css/upDown.css" />
  
  <script src="http://static.vlms.cn/resources/js/jquery.min.js"></script>
  <script src="http://static.vlms.cn/resources/js/main.js"></script>
  
  <!-- 回到顶部样式  -->
  <script src="http://static.vlms.cn/resources/js/JQscrollTop.js"></script>
  <script src="http://static.vlms.cn/resources/js/updown.js"></script>
  
    <!--[if lt IE 8]>
      <link href="//static.vlms.cn/resources/wangxiaoyun/css/oldie.css" rel="stylesheet">
    <![endif]-->
    
    <!--[if lt IE 9]>
    <script src="//static.vlms.cn/resources/wangxiaoyun/libs/html5shiv.js"></script>
    <![endif]-->

	  <!--[if IE 8]>
	    <script src="//static.vlms.cn/resources/wangxiaoyun/libs/respond.min.js"></script>
	  <![endif]-->
  
</head>
<body id="bodyColor" class="">

<style>
.nav-list > li.active > a {
    background-color: #ffa275;  
    color: #ffffff;
}

.site-navbar .navbar-nav > li > a:hover {
    background-color: #ffa275;
    color: #ffffff;
}
</style>

<div class="navbar navbar-inverse site-navbar" id="site-navbar">
  <div class="container">
    <div class="container-gap">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
          <a class="navbar-brand-logo" href="../index.html">
            <img src="http://static.vlms.cn/images/2015/07/ic4hqb7b.png" alt="SwiftV课堂" title="SwiftV课堂" height="55px;" />
          </a>
      </div>
      
      <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
              <li><a href="../course/explore-sort=latest.html"  >全部课程</a></li>
              <li><a href="https://www.boxueio.com/skill/swift?v"  target="_blank"  >如何学Swift？</a></li>
              <li><a href="../page/qun.html"  >Q群公布</a></li>
              <li><a href="../page/lianxi.html"  >联系我们</a></li>
          </ul>
        
        <ul class="nav navbar-nav navbar-right">
          <li>
	        <span class="nav navbar-nav" style="margin-top:10px;width:170px;">
	          <input class="typehead form-control search_input" type="text" placeholder="搜索课程或用户" style="display:inline;background:#5c5f68; border: 0px solid #5c5f68;width:130px;" data-role="item-input">
		      <button class="btn btn-default xin-search-btn" type="submit" data-role="item-add" style="margin-left:-10px;margin-top:-3px;background-color:#5c5f68;border: 1px solid #5c5f68;color:#a1a4ac;"><i class="glyphicon glyphicon-search"></i></button>
	    	</span>            
          </li>  
            <li><a href="../login.html">登录</a></li>
               <li><a href="../register.html">注册</a></li>
        </ul>        

      </div><!--/.navbar-collapse -->
    </div>
  </div>
</div>


<script>
   $(document).ready(function(){
      $(".typehead").click(function(){
          $(this).css("background","white");
          $(".xin-search-btn").css({"background":"white","border":"1px solid #FFFFFF"});
      });
      
   	  $(".typehead").blur(function(){
          $(this).css("background","#5c5f68");
           $(".xin-search-btn").css({"background":"#5c5f68","border":"1px solid #5c5f68"});
      });
      
	  //搜索按钮
	  $(".xin-search-btn").click(function(){
	   	var key=$(".search_input").val();
	   	var url = "";
	   	if (getUrlParam('theme')) {
	   		var value = getUrlParam('theme');
	   		url="/search/course?keyword="+key+"&theme="+value;
	   	}else{
			url="/search/course?keyword="+key;
		}
		location.href=url;
	  });
	  
	  	//获取url中的参数
		function getUrlParam(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
			var r = window.location.search.substr(1).match(reg);  	//匹配目标参数
			if (r != null) return unescape(r[2]); return null; 		//返回参数值
		}
	
   });
</script>


<div id="content-container" class="container">
        <div class="wxy-row-wrap container-gap" style="padding:15px 26px;">
  		<div class="row form-group">
  		
			    <div class="col-md-12">
			      <div class="page-header">
			        <h1>Swift 3 SE-0006 在标准库中应用API设计指南  <div class="pull-right" style="font-size:12px;padding:26px 20px; color:#7abaf5;">
			        <span>
		        		日期：2016-06-22 12:26:24
	        		</span>
	        		</div></h1>
			       
			      </div>
			      
			    </div>
	 
	  			<div class="col-md-12" style="padding-bottom:20px;">
			    <div class="control-label"> <label for="content">摘要：</label> </div>
			        <p style="padding-left:30px;padding-right:30px;"> 点评：这是Apple自身践行SE-0023的典范，如果你想知道在Swift 3标准库中究竟有哪些改变，没有什么比官方的这份列表更为全面的了。
</br>
译文链接：<a href="https://github.com/Boxue/swift-api-design-guidelines/blob/master/SE-0006%20apply-api-guidelines-to-the-standard-library.md" target="_blank"><span style="color:#337FE5;"><u>https://github.com/Boxue/swift-api-design-guidelines/blob/master/SE-0006%20apply-api-guidelines-to-the-standard-library.md</u></span></a><span style="line-height:1.5;"></p>
			     </div>
			     
			    <div class="col-md-12" style="padding-bottom:20px;">
			    <div class="control-label"> <label for="content">内容：</label> </div>
			        <p style="padding-left:30px;padding-right:30px;"> <h2 style="font-size:1.75em;font-family:;">
</h2>
<h2 style="font-size:1.75em;font-family:;">
	第一部分 提交review前必读
</h2>
<p style="font-family:" font-size:16px;"="">
		做为下面三份文档的一部分，它们的内容是彼此关联的：
	</p>
<ul style="font-family:" font-size:16px;"="">
	<li>
		<a href="https://github.com/apple/swift-evolution/blob/master/proposals/0023-api-guidelines.md">SE-0023 API设计指南</a> 
	</li>
	<li>
		<a href="https://github.com/apple/swift-evolution/blob/master/proposals/0006-apply-api-guidelines-to-the-standard-library.md">SE-0006 在标准库中应用设计指南</a> 
	</li>
	<li>
		<a href="https://github.com/apple/swift-evolution/blob/master/proposals/0005-objective-c-name-translation.md">SE-0005 更好的把Objective-C APIs转换成Swift版本</a> 
	</li>
		</ul>
<p style="font-family:" font-size:16px;"="">
		这三份文档的内容是相互关联的（例如：标准库中一个API的调整和某个API guideline是对应的，或根据某条设计指南制定的Clang importer规则，等等）。正因为存在这些内容交叉，为了保证讨论是可维护的，我们希望你：
			</p>
<ul style="font-family:" font-size:16px;"="">
			<li>
				<span style="font-weight:bolder;">在提交review之前，对以上三份文档中的全部内容，有一个基本的了解</span>；
			</li>
			<li>
				<span style="font-weight:bolder;">在提交以上三个文档的review时，请参照每个文档的review声明</span>。在你提交review时，如果文档间交叉引用有助于帮你阐述观点，你应该包含它们（这也是被提倡的做法）。
			</li>
				</ul>
				<h2 style="font-size:1.75em;font-family:;">
					<a id="user-content-第二部分-简介" class="anchor" href="https://github.com/Boxue/swift-api-design-guidelines/blob/master/SE0006-apply-api-guidelines-to-the-standard-library.md#%E7%AC%AC%E4%BA%8C%E9%83%A8%E5%88%86-%E7%AE%80%E4%BB%8B"></a>第二部分 简介
				</h2>
<p style="font-family:" font-size:16px;"=""> <a href="https://github.com/Boxue/swift-api-design-guidelines/blob/master">API设计指南</a>作为Swift 3开发工作的一部分，让标准库做为这份指南的实现典范是很重要的。在各种类型的App中，标准库中的API都是最常使用的Swift API，并且，标准库也为其它的程序库提供了实现基础。
					</p>
<p style="font-family:" font-size:16px;"="">
		在这份提议中，我们回顾了整个标准库，并且让它的设计遵循API设计指南中的要求。
				</p>
				<h2 style="font-size:1.75em;font-family:;">
					<a id="user-content-第三部分-提议的解决方案" class="anchor" href="https://github.com/Boxue/swift-api-design-guidelines/blob/master/SE0006-apply-api-guidelines-to-the-standard-library.md#%E7%AC%AC%E4%B8%89%E9%83%A8%E5%88%86-%E6%8F%90%E8%AE%AE%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88"></a>第三部分 提议的解决方案
				</h2>
<p style="font-family:" font-size:16px;"="">
		实际的代码修改在<a href="https://github.com/apple/swift/tree/swift-3-api-guidelines">Swift repository</a>的<a href="https://github.com/apple/swift">swift-3-api-guidelines</a>分支。总体来说，这些变化可以归结于以下几个方面：
					</p>
<ul style="font-family:" font-size:16px;"="">
					<li>
						在protocol名称中，去掉了Type后缀。在一些特殊情况下，为了避免和一些基本类型名称混淆，我们需要添加Protocol后缀（尽管这些类型我们期望在Swift 3中被废除）；
					</li>
					<li>
						在所有的API中，和generator相关的概念，都被重命名成了iterator；
					</li>
					<li>
						删除了仅用于CollectionOfOne的索引类型Bit。我们推荐使用Int；
					</li>
					<li>
						在“不安全的指针类型（unsafe pointer types）”中，泛型参数名从Memory改为了Pointee；
					</li>
					<li>
						删除了“不安全的指针类型”的默认初始化方法，我们推荐使用nil；
					</li>
					<li>
						删除了struct PermutationGenerator；
					</li>
					<li>
						删除了MutableSliceable&nbsp;protocol，你可以使用Collection where SubSequence : MutableCollection；
					</li>
					<li>
						sort()重命名成了sorted()，sortInPlace()重命名成了sort()；
					</li>
					<li>
						reverse()重命名成了reversed()；
					</li>
					<li>
						enumerate()重命名成了enumerated()；
					</li>
					<li>
						简化了partition()&nbsp;API；
					</li>
					<li>
						SequenceType.minElement()重命名为了.min()，.maxElement()重命名为了.max()；
					</li>
					<li>
						删除了一些序列和集合配接器（Collection adapters）的初始化方法。我们建议你调用对应算法函数或方法；
					</li>
					<li>
						把一些函数变成了类方法或反之；
					</li>
					<li>
						把以null结尾的UTF-8数据变成String对象的工厂函数变成了String的一个初始化方法；
					</li>
						</ul>
						<h2 style="font-size:1.75em;font-family:;">
							<a id="user-content-第四部分-api差异对比" class="anchor" href="https://github.com/Boxue/swift-api-design-guidelines/blob/master/SE0006-apply-api-guidelines-to-the-standard-library.md#%E7%AC%AC%E5%9B%9B%E9%83%A8%E5%88%86-api%E5%B7%AE%E5%BC%82%E5%AF%B9%E6%AF%94"></a>第四部分 API差异对比
						</h2>
<p style="font-family:" font-size:16px;"="">
		这部分描述了Swift 2.2和这份提议中描述的API的差别。具体的实现，则在<a href="https://github.com/apple/swift">swift-3-api-guidelines</a>分支。
							</p>
<p style="font-family:" font-size:16px;"="">
		对于那些会影响很多类型的重复修改，我们只列出其中一个。例如，generate()重命名为makeIterator()。我们只列出了在protocol中名称的差异，这样，因此，在对应的实现中，它们也将会被修改。如果一个类型名称被修改了，我们只列出了它们在修改前后声明的对比，因此，在这些被修改内容的应用场景中，也将使用新的名称。
						</p>
<ul style="font-family:" font-size:16px;"="">
						<li>
							在protocol名称中删除Type后缀：
						</li>
					</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre><span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol BooleanType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol Boolean { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol SequenceType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol Sequence { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol CollectionType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol Collection : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol MutableCollectionType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol MutableCollection : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol RangeReplaceableCollectionType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol RangeReplaceableCollection : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol AnyCollectionType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol AnyCollectionProtocol : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol IntegerType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol Integer : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol SignedIntegerType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol SignedInteger : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol UnsignedIntegerType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol UnsignedInteger : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol FloatingPointType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol FloatingPoint : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol ForwardIndexType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol ForwardIndex { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol BidirectionalIndexType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol BidirectionalIndex : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol RandomAccessIndexType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol RandomAccessIndex : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol IntegerArithmeticType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol IntegerArithmetic : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol SignedNumberType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol SignedNumber : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol IntervalType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol Interval : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol LazyCollectionType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol LazyCollectionProtocol : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol LazySequenceType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol LazySequenceProtocol : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol OptionSetType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol OptionSet : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol OutputStreamType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol OutputStream : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol BitwiseOperationsType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol BitwiseOperations { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol ReverseIndexType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol ReverseIndexProtocol : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol SetAlgebraType : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol SetAlgebra : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol UnicodeCodecType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol UnicodeCodec { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol CVarArgType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol CVarArg { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol MirrorPathType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol MirrorPath { ... }</span></pre>
						</div>
<ul style="font-family:" font-size:16px;"="">
						<li>
							在所有的API中，和generator相关的概念，都被重命名成了iterator：
						</li>
							</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre><span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol GeneratorType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol IteratorProtocol { ... }</span> public protocol Collection : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  associatedtype Generator : GeneratorType = IndexingGenerator</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  associatedtype Iterator : IteratorProtocol = IndexingIterator</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func generate() -&gt; Generator</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func makeIterator() -&gt; Iterator</span> } <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct IndexingGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct IndexingIterator: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct GeneratorOfOne: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct IteratorOverOne: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct EmptyGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct EmptyIterator: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol ErrorType { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public protocol ErrorProtocol { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct AnyGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct AnyIterator: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct LazyFilterGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct LazyFilterIterator: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct FlattenGenerator<base :="" ...=""> : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct FlattenIterator<base :="" ...=""> : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct JoinGenerator<base :="" ...=""> : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct JoinedIterator<base :="" ...=""> : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct LazyMapGenerator<base :="" ...=""> ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct LazyMapIterator<base :="" ...=""> ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct RangeGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct RangeIterator: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct GeneratorSequence: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct IteratorSequence: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct StrideToGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct StrideToIterator: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct StrideThroughGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct StrideThroughIterator: ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct UnsafeBufferPointerGenerator: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct UnsafeBufferPointerIterator: ... { ... }</span></pre>
								</div>
<ul style="font-family:" font-size:16px;"="">
								<li>
									删除了仅用于CollectionOfOne的索引类型Bit。我们推荐使用Int：
								</li>
									</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre><span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public enum Bit : ... { ... }</span></pre>
										</div>
<ul style="font-family:" font-size:16px;"="">
										<li>
											删除了struct PermutationGenerator：
										</li>
											</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre><span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct PermutationGenerator&lt;</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  C : CollectionType, Indices : SequenceType</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  where C.Index == Indices.Generator.Element</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-&gt; : ... { ... }</span></pre>
												</div>
<ul style="font-family:" font-size:16px;"="">
												<li>
													删除了MutableSliceable&nbsp;protocol，你可以使用Collection where SubSequence : MutableCollection；
												</li>
													</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre><span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public protocol MutableSliceable : CollectionType, MutableCollectionType {</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  subscript(_: Range) -&gt; SubSequence { get set }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-}</span></pre>
														</div>
<ul style="font-family:" font-size:16px;"="">
														<li>
															在“不安全的指针类型（unsafe pointer types）”中，泛型参数名从Memory改为了Pointee；
														</li>
														<li>
															删除了“不安全的指针类型”的默认初始化方法，我们推荐使用nil；
														</li>
															</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre> // The same changes applied to `UnsafePointer`, `UnsafeMutablePointer` and
 // `AutoreleasingUnsafeMutablePointer`.
 public struct UnsafePointer&lt; <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  Memory</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  Pointee</span> &gt; ... : { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var memory: Memory { get set }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var pointee: Pointee { get set }</span> // Use `nil` instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init()</span> }

public struct OpaquePointer : ... {
   // Use `nil` instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init()</span> }</pre>
																</div>
<ul style="font-family:" font-size:16px;"="">
																<li>
																	sort()重命名成了sorted()，sortInPlace()重命名成了sort()，并且，我们给Closure添加了参数label：
																</li>
																	</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre>extension Sequence where Self.Iterator.Element : Comparable {
   @warn_unused_result <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func sort() -&gt; [Generator.Element]</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func sorted() -&gt; [Iterator.Element]</span> }

 extension Sequence {
   @warn_unused_result <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func sort(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func sorted(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    @noescape                 isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    @noescape isOrderedBefore isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> ) -&gt; [Iterator.Element]
 }

 extension MutableCollection where Self.Iterator.Element : Comparable {
   @warn_unused_result(mutable_variant="sort") <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func sort() -&gt; [Generator.Element]</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func sorted() -&gt; [Iterator.Element]</span> }

 extension MutableCollection {
   @warn_unused_result(mutable_variant="sort") <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func sort(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func sorted(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-   @noescape                 isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+   @noescape isOrderedBefore isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> ) -&gt; [Iterator.Element]
 }

 extension MutableCollection
   where
   Self.Index : RandomAccessIndex,
   Self.Iterator.Element : Comparable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func sortInPlace()</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func sort()</span> }

 extension MutableCollection where Self.Index : RandomAccessIndex { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func sortInPlace(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func sort(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    @noescape                 isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    @noescape isOrderedBefore isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> )
 }</pre>
																		</div>
<ul style="font-family:" font-size:16px;"="">
																		<li>
																			reverse()重命名成了reversed()：
																		</li>
																			</ul>
<div class="highlight highlight-source-swift" style="font-family:" font-size:16px;"="">
<pre> <span class="pl-k" style="color:#A71D5D;">extension</span> <span class="pl-c1" style="color:#0086B3;">SequenceType</span> { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reverse</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [Generator.Element] <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reversed</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [Iterator.Element]
 } <span class="pl-k" style="color:#A71D5D;">extension</span> <span class="pl-c1" style="color:#0086B3;">CollectionType</span> <span class="pl-k" style="color:#A71D5D;">where</span> Index <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">BidirectionalIndexType</span> { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reverse</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">ReverseCollection</span><span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reversed</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">ReverseCollection</span>} <span class="pl-k" style="color:#A71D5D;">extension</span> <span class="pl-c1" style="color:#0086B3;">CollectionType</span> <span class="pl-k" style="color:#A71D5D;">where</span> Index <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">RandomAccessIndexType</span> { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reverse</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">ReverseRandomAccessCollection</span><span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reversed</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">ReverseRandomAccessCollection</span>} <span class="pl-k" style="color:#A71D5D;">extension</span> LazyCollectionProtocol <span class="pl-k" style="color:#A71D5D;">where</span> Index <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">BidirectionalIndexType</span>, Elements<span class="pl-k" style="color:#A71D5D;">.</span>Index <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">BidirectionalIndexType</span> { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reverse</span>() <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reversed</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> LazyCollection<span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">ReverseCollection</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Elements<span class="pl-k" style="color:#A71D5D;">&gt;&gt;</span> } <span class="pl-k" style="color:#A71D5D;">extension</span> LazyCollectionProtocol <span class="pl-k" style="color:#A71D5D;">where</span> Index <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">RandomAccessIndexType</span>, Elements<span class="pl-k" style="color:#A71D5D;">.</span>Index <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">RandomAccessIndexType</span> { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reverse</span>() <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">reversed</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> LazyCollection<span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">ReverseRandomAccessCollection</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Elements<span class="pl-k" style="color:#A71D5D;">&gt;&gt;</span> }</pre>
																				</div>
<ul style="font-family:" font-size:16px;"="">
																				<li>
																					enumerate()重命名成了enumerated()：
																				</li>
																					</ul>
<div class="highlight highlight-source-swift" style="font-family:" font-size:16px;"="">
<pre> <span class="pl-k" style="color:#A71D5D;">extension</span> Sequence { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">enumerate</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">EnumerateSequence</span><span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">enumerated</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> EnumeratedSequence} <span class="pl-k" style="color:#A71D5D;">-</span><span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">struct</span> <span class="pl-c1" style="color:#0086B3;">EnumerateSequence</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Base <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">SequenceType</span><span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-k" style="color:#A71D5D;">...</span> { <span class="pl-k" style="color:#A71D5D;">...</span> } <span class="pl-k" style="color:#A71D5D;">+</span><span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">struct</span> EnumeratedSequence<span class="pl-k" style="color:#A71D5D;">&lt;</span>Base <span class="pl-k" style="color:#A71D5D;">:</span> Sequence<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-k" style="color:#A71D5D;">...</span> { <span class="pl-k" style="color:#A71D5D;">...</span> } <span class="pl-k" style="color:#A71D5D;">-</span><span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">struct</span> <span class="pl-c1" style="color:#0086B3;">EnumerateGenerator</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Base <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-c1" style="color:#0086B3;">GeneratorType</span><span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-k" style="color:#A71D5D;">...</span> { <span class="pl-k" style="color:#A71D5D;">...</span> } <span class="pl-k" style="color:#A71D5D;">+</span><span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">struct</span> EnumeratedIterator<span class="pl-k" style="color:#A71D5D;">&lt;</span>Base <span class="pl-k" style="color:#A71D5D;">:</span> IteratorProtocol<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">:</span> <span class="pl-k" style="color:#A71D5D;">...</span> { <span class="pl-k" style="color:#A71D5D;">...</span> }</pre>
																						</div>
<ul style="font-family:" font-size:16px;"="">
																						<li>
																							简化了partition()&nbsp;API：
																						</li>
																							</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre>extension MutableCollection where Index : RandomAccessIndex {
   public mutating func partition( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range: Range,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-                              isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    @noescape isOrderedBefore isOrderedBefore: (Iterator.Element, Iterator.Element) -&gt; Bool</span> ) -&gt; Index
 }

 extension MutableCollection
   where Index : RandomAccessIndex, Iterator.Element : Comparable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func partition(range: Range) -&gt; Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func partition() -&gt; Index</span> }</pre>
																								</div>
<ul style="font-family:" font-size:16px;"="">
																								<li>
																									SequenceType.minElement()重命名为了.min()，.maxElement()重命名为了.max()，我们还给clousre参数添加了参数label：
																								</li>
																									</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre> extension Sequence { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func minElement(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func min(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    @noescape                 isOrderedBefore: (Iterator.Element, Iterator.Element) throws -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    @noescape isOrderedBefore isOrderedBefore: (Iterator.Element, Iterator.Element) throws -&gt; Bool</span> ) rethrows -&gt; Iterator.Element? <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func maxElement(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func max(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    @noescape                 isOrderedBefore: (Iterator.Element, Iterator.Element) throws -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    @noescape isOrderedBefore isOrderedBefore: (Iterator.Element, Iterator.Element) throws -&gt; Bool</span> ) rethrows -&gt; Iterator.Element?
 }

 extension Sequence where Iterator.Element : Comparable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func minElement() -&gt; Iterator.Element?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func min() -&gt; Iterator.Element?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func maxElement() -&gt; Iterator.Element?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func max() -&gt; Iterator.Element?</span> }
</pre>
																										</div>
<ul style="font-family:" font-size:16px;"="">
																										<li>
																											删除了一些序列和集合配接器（Collection adapters）的初始化方法。我们建议你调用对应算法函数或方法：
																										</li>
																											</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre> extension Repeated { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(count: Int, repeatedValue: Element)</span> } <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+/// Return a collection containing `n` repetitions of `elementInstance`.</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func repeatElement(element: T, count n: Int) -&gt; Repeated</span> public struct LazyMapSequence<base :="" sequence,="" element=""> : ... {
   // Call `.lazy.map` on the sequence instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ base: Base, transform: (Base.Generator.Element) -&gt; Element)</span> }

 public struct LazyMapCollection<base :="" collection,="" element=""> : ... {
   // Call `.lazy.map` on the collection instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ base: Base, transform: (Base.Generator.Element) -&gt; Element)</span> }

 public struct LazyFilterIterator: ... {
   // Call `.lazy.filter` on the sequence instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    _ base: Base,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    whereElementsSatisfy predicate: (Base.Element) -&gt; Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  )</span> }

 public struct RangeIterator: ... {
   // Use the 'generate()' method on the collection instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ bounds: Range)</span> // Use the '..&lt;' operator. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(start: Element, end: Element)</span> }

 public struct ReverseCollection<base :="" ...=""> : ... {
   // Use the 'reverse()' method on the collection. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ base: Base)</span> }

 public struct ReverseRandomAccessCollection<base :="" ...=""> : ... {
   // Use the 'reverse()' method on the collection. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ base: Base)</span> }

 public struct Slice: ... {
   // Use the slicing syntax. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(base: Base, bounds: Range)</span> }

 public struct MutableSlice: ... {
   // Use the slicing syntax. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(base: Base, bounds: Range)</span> }

 public struct EnumeratedIterator: ... {
   // Use the 'enumerated()' method. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ base: Base)</span> }

 public struct EnumeratedSequence: ... {
   // Use the 'enumerated()' method. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ base: Base)</span> }

 public struct IndexingIterator: ... {
   // Call 'iterator()' on the collection instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_elements: Elements)</span> }

 public struct HalfOpenInterval: ... {
   // Use the '..&lt;' operator. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ start: Bound, _ end: Bound)</span> }

 public struct ClosedInterval: ... {
   // Use the '...' operator. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(_ start: Bound, _ end: Bound)</span> }
    • Some functions were changed into properties and vice versa. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func unsafeUnwrap(nonEmpty: T?) -&gt; T</span> extension Optional { <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var unsafelyUnwrapped: Wrapped { get }</span> }

 public struct Mirror { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func superclassMirror() -&gt; Mirror?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var superclassMirror: Mirror? { get }</span> }

 public protocol CustomReflectable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func customMirror() -&gt; Mirror</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  var customMirror: Mirror { get }</span> }

 public protocol Collection : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func underestimateCount() -&gt; Int</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var underestimatedCount: Int { get }</span> }

 public protocol CustomPlaygroundQuickLookable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func customPlaygroundQuickLook() -&gt; PlaygroundQuickLook</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  var customPlaygroundQuickLook: PlaygroundQuickLook { get }</span> }

 extension String { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var lowercaseString: String { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func lowercased()</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var uppercaseString: String { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func uppercased()</span> }

 public enum UnicodeDecodingResult { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func isEmptyInput() -&gt; Bool {</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var isEmptyInput: Bool</span> }</pre>
																												</div>
<ul style="font-family:" font-size:16px;"="">
																												<li>
																													方法名和参数label名根据API设计指南中进行了修改（属于这个类目的一些修改已经在其他类目中指出了，因此就不在这里重复了）：
																												</li>
																													</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre>public protocol ForwardIndex { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func advancedBy(n: Distance) -&gt; Self</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func advanced(by n: Distance) -&gt; Self</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func advancedBy(n: Distance, limit: Self) -&gt; Self</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func advanced(by n: Distance, limit: Self) -&gt; Self</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func distanceTo(end: Self) -&gt; Distance</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func distance(to end: Self) -&gt; Distance</span> }

 public struct Set: ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func removeAtIndex(index: Index) -&gt; Element</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func remove(at index: Index) -&gt; Element</span> }

 public struct Dictionary<key :="" hashable,="" value=""> : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func removeAtIndex(index: Index) -&gt; Element</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func remove(at index: Index) -&gt; Element</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func indexForKey(key: Key) -&gt; Index?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func index(forKey key: Key) -&gt; Index?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func removeValueForKey(key: Key) -&gt; Value?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func removeValue(forKey key: Key) -&gt; Value?</span> }

 extension Sequence where Iterator.Element : Sequence {
   // joinWithSeparator(_:) =&gt; join(separator:) <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func joinWithSeparator&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func joined&lt;</span> Separator : Sequence
     where
     Separator.Iterator.Element == Iterator.Element.Iterator.Element <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  &gt;(separator: Separator) -&gt; JoinSequence</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  &gt;(separator separator: Separator) -&gt; JoinedSequence</span> }

 extension Sequence where Iterator.Element == String { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func joinWithSeparator(separator: String) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func joined(separator separator: String) -&gt; String</span> }

 public class ManagedBuffer<value, element=""> : ... {
   public final class func create( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    minimumCapacity: Int,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    minimumCapacity minimumCapacity: Int,</span> initialValue: (ManagedProtoBuffer<value, element="">) -&gt; Value
   ) -&gt; ManagedBuffer<value, element="">
 }

 public protocol Streamable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func writeTo(inout target: Target)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func write(inout to target: Target)</span> }

 public func dump<t, targetstream="" :="" outputstream="">(
   value: T, <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  inout _ target: TargetStream,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  inout to target: TargetStream,</span> name: String? = nil,
   indent: Int = 0,
   maxDepth: Int = .max,
   maxItems: Int = .max
 ) -&gt; T

 extension Sequence { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func startsWith&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func starts&lt;</span> PossiblePrefix : Sequence where PossiblePrefix.Iterator.Element == Iterator.Element
   &gt;( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    possiblePrefix: PossiblePrefix,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    with possiblePrefix: PossiblePrefix,</span> @noescape isEquivalent: (Iterator.Element, Iterator.Element) throws -&gt; Bool
   ) rethrows -&gt; Bool <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func startsWith&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func starts&lt;</span> PossiblePrefix : Sequence where PossiblePrefix.Iterator.Element == Iterator.Element
   &gt;( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    possiblePrefix: PossiblePrefix</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    with possiblePrefix: PossiblePrefix</span> ) -&gt; Bool
 }

 extension CollectionType where Iterator.Element : Equatable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func indexOf(element: Iterator.Element) -&gt; Index?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func index(of element: Iterator.Element) -&gt; Index?</span> }

 extension CollectionType { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func indexOf(predicate: (Iterator.Element) throws -&gt; Bool) rethrows -&gt; Index?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func index(where predicate: (Iterator.Element) throws -&gt; Bool) rethrows -&gt; Index?</span> }

 extension String.Index { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(utf8: String.UTF8View) -&gt; String.UTF8View.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in utf8: String.UTF8View) -&gt; String.UTF8View.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(unicodeScalars: String.UnicodeScalarView) -&gt; String.UnicodeScalarView.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in unicodeScalars: String.UnicodeScalarView) -&gt; String.UnicodeScalarView.Index</span> }

 extension String.UTF16View.Index { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(characters: String) -&gt; String.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in characters: String) -&gt; String.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(utf8: String.UTF8View) -&gt; String.UTF8View.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in utf8: String.UTF8View) -&gt; String.UTF8View.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(unicodeScalars: String.UnicodeScalarView) -&gt; String.UnicodeScalarView.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in unicodeScalars: String.UnicodeScalarView) -&gt; String.UnicodeScalarView.Index</span> }

 extension String.UTF8View.Index { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(characters: String) -&gt; String.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in characters: String) -&gt; String.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(unicodeScalars: String.UnicodeScalarView) -&gt; String.UnicodeScalarView.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in unicodeScalars: String.UnicodeScalarView) -&gt; String.UnicodeScalarView.Index</span> }

 extension String.UnicodeScalarView.Index { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(characters: String) -&gt; String.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in characters: String) -&gt; String.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func samePositionIn(utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func samePosition(in utf16: String.UTF16View) -&gt; String.UTF16View.Index</span> }</t,></value,></value,></value,></pre>
																														</div>
<ul style="font-family:" font-size:16px;"="">
																														<li>
																															小写所有的enum case和静态属性：
																														</li>
																															</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre>public struct Float { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public static var NaN: Float</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public static var nan: Float</span> }

 public struct Double { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public static var NaN: Double</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public static var nan: Double</span> public struct CGFloat { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public static var NaN: CGFloat</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public static var nan: CGFloat</span> }

 public protocol FloatingPoint : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  static var NaN: Self { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  static var nan: Self { get }</span> }

 public enum FloatingPointClassification { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case SignalingNaN</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case signalingNaN</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case QuietNaN</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case quietNaN</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case NegativeInfinity</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case negativeInfinity</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case NegativeNormal</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case negativeNormal</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case NegativeSubnormal</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case negativeSubnormal</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case NegativeZero</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case negativeZero</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case PositiveZero</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case positiveZero</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case PositiveSubnormal</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case positiveSubnormal</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case PositiveNormal</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case positiveNormal</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case PositiveInfinity</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case positiveInfinity</span> }

 public enum ImplicitlyUnwrappedOptional: ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case None</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case none</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Some(Wrapped)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case some(Wrapped)</span> }

 public enum Optional: ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case None</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case none</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Some(Wrapped)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case some(Wrapped)</span> }

 public struct Mirror {
   public enum AncestorRepresentation { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    case Generated</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    case generated</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    case Customized(() -&gt; Mirror)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    case customized(() -&gt; Mirror)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    case Suppressed</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    case suppressed</span> }

   public enum DisplayStyle { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    case struct, class, enum, tuple, optional, collection</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    case `struct`, `class`, `enum`, tuple, optional, collection</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    case dictionary, `set`</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    case dictionary, `set`</span> }
 }

 public enum PlaygroundQuickLook { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Text(String)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case text(String)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Int(Int64)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case int(Int64)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case UInt(UInt64)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case uInt(UInt64)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Float(Float32)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case float(Float32)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Double(Float64)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case double(Float64)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Image(Any)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case image(Any)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Sound(Any)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case sound(Any)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Color(Any)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case color(Any)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case BezierPath(Any)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case bezierPath(Any)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case AttributedString(Any)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case attributedString(Any)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Rectangle(Float64,Float64,Float64,Float64)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case rectangle(Float64,Float64,Float64,Float64)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Point(Float64,Float64)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case point(Float64,Float64)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Size(Float64,Float64)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case size(Float64,Float64)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Logical(Bool)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case bool(Bool)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Range(Int64, Int64)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case range(Int64, Int64)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case View(Any)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case view(Any)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Sprite(Any)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case sprite(Any)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case URL(String)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case url(String)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case _Raw([UInt8], String)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case _raw([UInt8], String)</span> }</pre>
																																</div>
<ul style="font-family:" font-size:16px;"="">
																																<li>
																																	把以null结尾的UTF-8数据变成String对象的工厂函数变成了String的一个初始化方法：
																																</li>
																																	</ul>
<div class="highlight highlight-source-swift" style="font-family:" font-size:16px;"="">
<pre> <span class="pl-k" style="color:#A71D5D;">extension</span> <span class="pl-c1" style="color:#0086B3;">String</span> { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">static</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">fromCString</span>(cs: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>?(validatingUTF8 cString: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">static</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">fromCStringRepairingIllFormedUTF8</span>(cs: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> (<span class="pl-c1" style="color:#0086B3;">String</span>?, hadError: <span class="pl-c1" style="color:#0086B3;">Bool</span>) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(cString: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">static</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">decodeCString</span><encoding <span="" class="pl-k" style="color:#A71D5D;">: UnicodeCodec&gt;( <span class="pl-k" style="color:#A71D5D;">+</span> cString: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Encoding<span class="pl-k" style="color:#A71D5D;">.</span>CodeUnit<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">as</span> <span class="pl-smi">encoding</span>: Encoding<span class="pl-k" style="color:#A71D5D;">.</span><span class="pl-k" style="color:#A71D5D;">Type</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">repairingInvalidCodeUnits</span> <span class="pl-smi">isReparing</span>: <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">true</span>) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">-&gt;</span> (result: <span class="pl-c1" style="color:#0086B3;">String</span>, repairsMade: <span class="pl-c1" style="color:#0086B3;">Bool</span>)?
 }</pre>
																																		</div>
<ul style="font-family:" font-size:16px;"="">
																																		<li>
																																			从NSString引入的方法按照新的设计指南重新进行了命名：
																																		</li>
																																			</ul>
<div class="highlight highlight-source-swift" style="font-family:" font-size:16px;"="">
<pre> <span class="pl-k" style="color:#A71D5D;">extension</span> <span class="pl-c1" style="color:#0086B3;">String</span> { <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">static</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedNameOfStringEncoding</span>( <span class="pl-k" style="color:#A71D5D;">-</span> encoding: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">static</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedName</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">ofStringEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">static</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">pathWithComponents</span>(components: [<span class="pl-c1" style="color:#0086B3;">String</span>]) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">static</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">path</span>(<span class="pl-en" style="color:#795DA3;">withComponents</span> <span class="pl-smi">components</span>: [<span class="pl-c1" style="color:#0086B3;">String</span>]) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>?(UTF8String bytes: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>?(utf8String bytes: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">canBeConvertedToEncoding</span>(encoding: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">canBeConverted</span>(<span class="pl-en" style="color:#795DA3;">toEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> capitalizedString: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> capitalized: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> localizedCapitalizedString: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> localizedCapitalized: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">capitalizedStringWithLocale</span>(locale: NSLocale?) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">capitalized</span>(<span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">locale</span>: NSLocale?) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">commonPrefixWithString</span>( <span class="pl-k" style="color:#A71D5D;">-</span> aString: <span class="pl-c1" style="color:#0086B3;">String</span>, options: NSStringCompareOptions) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">commonPrefix</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">aString</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, options: NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> []) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">completePathIntoString</span>( <span class="pl-k" style="color:#A71D5D;">-</span> outputName: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">String</span><span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">-</span> caseSensitive: <span class="pl-c1" style="color:#0086B3;">Bool</span>, <span class="pl-k" style="color:#A71D5D;">-</span> matchesIntoArray: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>[<span class="pl-c1" style="color:#0086B3;">String</span>]<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">-</span> filterTypes: [<span class="pl-c1" style="color:#0086B3;">String</span>]? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">completePath</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">into</span> <span class="pl-smi">outputName</span>: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">String</span><span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">+</span> caseSensitive: <span class="pl-c1" style="color:#0086B3;">Bool</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">matchesInto</span> <span class="pl-smi">matchesIntoArray</span>: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>[<span class="pl-c1" style="color:#0086B3;">String</span>]<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">+</span> filterTypes: [<span class="pl-c1" style="color:#0086B3;">String</span>]? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">componentsSeparatedByCharactersInSet</span>( <span class="pl-k" style="color:#A71D5D;">-</span> separator: NSCharacterSet <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">componentsSeparatedByCharacters</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">in</span> <span class="pl-smi">separator</span>: NSCharacterSet <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">componentsSeparatedByString</span>(separator: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">componentsSeparated</span>(<span class="pl-en" style="color:#795DA3;">by</span> <span class="pl-smi">separator</span>: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">cStringUsingEncoding</span>(encoding: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">CChar</span>]? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">cString</span>(<span class="pl-en" style="color:#795DA3;">usingEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">CChar</span>]? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">dataUsingEncoding</span>( <span class="pl-k" style="color:#A71D5D;">-</span> encoding: NSStringEncoding, <span class="pl-k" style="color:#A71D5D;">-</span> allowLossyConversion: <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">false</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> NSData? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">data</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">usingEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding, <span class="pl-k" style="color:#A71D5D;">+</span> allowLossyConversion: <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">false</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> NSData? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">enumerateLinguisticTagsInRange</span>( <span class="pl-k" style="color:#A71D5D;">-</span> range: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">scheme</span> <span class="pl-smi">tagScheme</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">opts</span>: NSLinguisticTaggerOptions, <span class="pl-k" style="color:#A71D5D;">-</span> orthography: NSOrthography?, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">_</span> <span class="pl-smi">body</span>: <span class="pl-k" style="color:#A71D5D;">-</span> (<span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-en" style="color:#795DA3;">inout</span> <span class="pl-smi">Bool</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> () <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">enumerateLinguisticTags</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">in</span> <span class="pl-smi">range</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">scheme</span> <span class="pl-smi">tagScheme</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">opts</span>: NSLinguisticTaggerOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">+</span> orthography: NSOrthography? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">_</span> <span class="pl-smi">body</span>: <span class="pl-k" style="color:#A71D5D;">+</span> (<span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-en" style="color:#795DA3;">inout</span> <span class="pl-smi">Bool</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> () <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">enumerateSubstringsInRange</span>( <span class="pl-k" style="color:#A71D5D;">-</span> range: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">opts</span>:NSStringEnumerationOptions, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">_</span> <span class="pl-smi">body</span>: ( <span class="pl-k" style="color:#A71D5D;">-</span> substring: <span class="pl-c1" style="color:#0086B3;">String</span>?, substringRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> enclosingRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-en" style="color:#795DA3;">inout</span> <span class="pl-smi">Bool</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> () <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">enumerateSubstrings</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">in</span> <span class="pl-smi">range</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">opts</span>:NSStringEnumerationOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">_</span> <span class="pl-smi">body</span>: ( <span class="pl-k" style="color:#A71D5D;">+</span> substring: <span class="pl-c1" style="color:#0086B3;">String</span>?, substringRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> enclosingRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-en" style="color:#795DA3;">inout</span> <span class="pl-smi">Bool</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> () <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">fileSystemRepresentation</span>() <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">CChar</span>] <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> fileSystemRepresentation: [<span class="pl-c1" style="color:#0086B3;">CChar</span>] <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">getBytes</span>( <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">inout</span> <span class="pl-smi">buffer</span>: [<span class="pl-c1" style="color:#0086B3;">UInt8</span>], <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">maxLength</span> <span class="pl-smi">maxBufferCount</span>: <span class="pl-c1" style="color:#0086B3;">Int</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">usedLength</span> <span class="pl-smi">usedBufferCount</span>: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">Int</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> encoding: NSStringEncoding, <span class="pl-k" style="color:#A71D5D;">-</span> options: NSStringEncodingConversionOptions, <span class="pl-k" style="color:#A71D5D;">-</span> range: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">remainingRange</span> <span class="pl-smi">leftover</span>: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;&gt;</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">getBytes</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">inout</span> <span class="pl-smi">buffer</span>: [<span class="pl-c1" style="color:#0086B3;">UInt8</span>], <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">maxLength</span> <span class="pl-smi">maxBufferCount</span>: <span class="pl-c1" style="color:#0086B3;">Int</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">usedLength</span> <span class="pl-smi">usedBufferCount</span>: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">Int</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> encoding: NSStringEncoding, <span class="pl-k" style="color:#A71D5D;">+</span> options: NSStringEncodingConversionOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">+</span> range: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">remaining</span> <span class="pl-smi">leftover</span>: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;&gt;</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">getLineStart</span>( <span class="pl-k" style="color:#A71D5D;">-</span> start: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> end: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> contentsEnd: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> forRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">getLineStart</span>( <span class="pl-k" style="color:#A71D5D;">+</span> start: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> end: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> contentsEnd: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">for</span> <span class="pl-smi">range</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">getParagraphStart</span>( <span class="pl-k" style="color:#A71D5D;">-</span> start: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> end: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> contentsEnd: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> forRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">getParagraphStart</span>( <span class="pl-k" style="color:#A71D5D;">+</span> start: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> end: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> contentsEnd: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">for</span> <span class="pl-smi">range</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>( <span class="pl-k" style="color:#A71D5D;">-</span> contentsOfURL url: NSURL, <span class="pl-k" style="color:#A71D5D;">+</span> contentsOf url: NSURL,
     encoding enc: NSStringEncoding
   ) <span class="pl-k" style="color:#A71D5D;">throws</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>( <span class="pl-k" style="color:#A71D5D;">-</span> contentsOfURL url: NSURL, <span class="pl-k" style="color:#A71D5D;">+</span> contentsOf url: NSURL,
     usedEncoding enc: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>NSStringEncoding<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> ) <span class="pl-k" style="color:#A71D5D;">throws</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>?( <span class="pl-k" style="color:#A71D5D;">-</span> CString: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> cString: <span class="pl-c1" style="color:#0086B3;">UnsafePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span><span class="pl-c1" style="color:#0086B3;">CChar</span><span class="pl-k" style="color:#A71D5D;">&gt;</span>,
     encoding enc: NSStringEncoding
   ) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, _ arguments: <span class="pl-c1" style="color:#0086B3;">CVarArgType</span><span class="pl-k" style="color:#A71D5D;">...</span>) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, _ arguments: CVarArg<span class="pl-k" style="color:#A71D5D;">...</span>) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, arguments: [<span class="pl-c1" style="color:#0086B3;">CVarArgType</span>]) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, arguments: [CVarArg]) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, locale: NSLocale?, _ args: <span class="pl-c1" style="color:#0086B3;">CVarArgType</span><span class="pl-k" style="color:#A71D5D;">...</span>) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, locale: NSLocale?, _ args: CVarArg<span class="pl-k" style="color:#A71D5D;">...</span>) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, locale: NSLocale?, arguments: [<span class="pl-c1" style="color:#0086B3;">CVarArgType</span>]) <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">init</span>(format: <span class="pl-c1" style="color:#0086B3;">String</span>, locale: NSLocale?, arguments: [CVarArg]) <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">lengthOfBytesUsingEncoding</span>(encoding: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">lengthOfBytes</span>(<span class="pl-en" style="color:#795DA3;">usingEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">lineRangeForRange</span>(aRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">lineRange</span>(<span class="pl-en" style="color:#795DA3;">for</span> <span class="pl-smi">aRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">linguisticTagsInRange</span>( <span class="pl-k" style="color:#A71D5D;">-</span> range: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">scheme</span> <span class="pl-smi">tagScheme</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">opts</span>: NSLinguisticTaggerOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">-</span> orthography: NSOrthography? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">-</span> tokenRanges: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>[<span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>]<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-c" style="color:#969896;">// FIXME:Can this be nil?</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">linguisticTags</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">in</span> <span class="pl-smi">range</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">scheme</span> <span class="pl-smi">tagScheme</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">opts</span>: NSLinguisticTaggerOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">+</span> orthography: NSOrthography? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">+</span> tokenRanges: <span class="pl-c1" style="color:#0086B3;">UnsafeMutablePointer</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>[<span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>]<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-c" style="color:#969896;">// FIXME:Can this be nil?</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> localizedLowercaseString: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> localizedLowercase: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">lowercaseStringWithLocale</span>(locale: NSLocale?) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">lowercaseString</span>(<span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">locale</span>: NSLocale?) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">maximumLengthOfBytesUsingEncoding</span>(encoding: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">maximumLengthOfBytes</span>(<span class="pl-en" style="color:#795DA3;">usingEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">paragraphRangeForRange</span>(aRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">paragraphRange</span>(<span class="pl-en" style="color:#795DA3;">for</span> <span class="pl-smi">aRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">rangeOfCharacterFromSet</span>( <span class="pl-k" style="color:#A71D5D;">-</span> aSet: NSCharacterSet, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">mask</span>:NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">range</span> <span class="pl-smi">aRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">rangeOfCharacter</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">from</span> <span class="pl-smi">aSet</span>: NSCharacterSet, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">mask</span>:NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">range</span> <span class="pl-smi">aRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">rangeOfComposedCharacterSequenceAtIndex</span>(anIndex: Index) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">rangeOfComposedCharacterSequence</span>(<span class="pl-en" style="color:#795DA3;">at</span> <span class="pl-smi">anIndex</span>: Index) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">rangeOfComposedCharacterSequencesForRange</span>( <span class="pl-k" style="color:#A71D5D;">-</span> range: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">rangeOfComposedCharacterSequences</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">for</span> <span class="pl-smi">range</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">rangeOfString</span>( <span class="pl-k" style="color:#A71D5D;">-</span> aString: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">mask</span>: NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">range</span> <span class="pl-smi">searchRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">-</span> locale: NSLocale? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">range</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">of</span> <span class="pl-smi">aString</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">options</span> <span class="pl-smi">mask</span>: NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">range</span> <span class="pl-smi">searchRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span>, <span class="pl-k" style="color:#A71D5D;">+</span> locale: NSLocale? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedStandardContainsString</span>(string: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedStandardContains</span>(string: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedStandardRangeOfString</span>(string: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedStandardRange</span>(<span class="pl-en" style="color:#795DA3;">of</span> <span class="pl-smi">string</span>: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Range</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> stringByAbbreviatingWithTildeInPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> abbreviatingWithTildeInPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByAddingPercentEncodingWithAllowedCharacters</span>( <span class="pl-k" style="color:#A71D5D;">-</span> allowedCharacters: NSCharacterSet <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">addingPercentEncoding</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">withAllowedCharaters</span> <span class="pl-smi">allowedCharacters</span>: NSCharacterSet <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByAddingPercentEscapesUsingEncoding</span>( <span class="pl-k" style="color:#A71D5D;">-</span> encoding: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">addingPercentEscapes</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">usingEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByAppendingFormat</span>( <span class="pl-k" style="color:#A71D5D;">-</span> format: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-en" style="color:#795DA3;">_</span> <span class="pl-smi">arguments</span>: <span class="pl-c1" style="color:#0086B3;">CVarArgType</span><span class="pl-k" style="color:#A71D5D;">...</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">appendingFormat</span>( <span class="pl-k" style="color:#A71D5D;">+</span> format: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-en" style="color:#795DA3;">_</span> <span class="pl-smi">arguments</span>: CVarArg<span class="pl-k" style="color:#A71D5D;">...</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByAppendingPathComponent</span>(aString: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">appendingPathComponent</span>(aString: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByAppendingPathExtension</span>(ext: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">appendingPathExtension</span>(ext: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByAppendingString</span>(aString: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">appending</span>(aString: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> stringByDeletingLastPathComponent: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> deletingLastPathComponent: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> stringByDeletingPathExtension: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> deletingPathExtension: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> stringByExpandingTildeInPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> expandingTildeInPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByFoldingWithOptions</span>( <span class="pl-k" style="color:#A71D5D;">-</span> options: NSStringCompareOptions, locale: NSLocale? <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">folding</span>( <span class="pl-k" style="color:#A71D5D;">+</span> options: NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], locale: NSLocale? <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByPaddingToLength</span>( <span class="pl-k" style="color:#A71D5D;">-</span> newLength: <span class="pl-c1" style="color:#0086B3;">Int</span>, <span class="pl-en" style="color:#795DA3;">withString</span> <span class="pl-smi">padString</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-en" style="color:#795DA3;">startingAtIndex</span> <span class="pl-smi">padIndex</span>: <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">padding</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">toLength</span> <span class="pl-smi">newLength</span>: <span class="pl-c1" style="color:#0086B3;">Int</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">padString</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">startingAt</span> <span class="pl-smi">padIndex</span>: <span class="pl-c1" style="color:#0086B3;">Int</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> stringByRemovingPercentEncoding: <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> removingPercentEncoding: <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByReplacingCharactersInRange</span>( <span class="pl-k" style="color:#A71D5D;">-</span> range: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-en" style="color:#795DA3;">withString</span> <span class="pl-smi">replacement</span>: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">replacingCharacters</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">in</span> <span class="pl-smi">range</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>, <span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">replacement</span>: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByReplacingOccurrencesOfString</span>( <span class="pl-k" style="color:#A71D5D;">-</span> target: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">withString</span> <span class="pl-smi">replacement</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">-</span> options: NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">range</span> <span class="pl-smi">searchRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">replacingOccurrences</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">of</span> <span class="pl-smi">target</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">replacement</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-k" style="color:#A71D5D;">+</span> options: NSStringCompareOptions <span class="pl-k" style="color:#A71D5D;">=</span> [], <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">range</span> <span class="pl-smi">searchRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>? <span class="pl-k" style="color:#A71D5D;">=</span> <span class="pl-c1" style="color:#0086B3;">nil</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByReplacingPercentEscapesUsingEncoding</span>( <span class="pl-k" style="color:#A71D5D;">-</span> encoding: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">replacingPercentEscapes</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">usingEncoding</span> <span class="pl-smi">encoding</span>: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> stringByResolvingSymlinksInPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> resolvingSymlinksInPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> stringByStandardizingPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> standardizingPath: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByTrimmingCharactersInSet</span>(<span class="pl-k" style="color:#A71D5D;">set</span>: NSCharacterSet) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">trimmingCharacters</span>(<span class="pl-en" style="color:#795DA3;">in</span> <span class="pl-smi">set</span>: NSCharacterSet) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringsByAppendingPaths</span>(paths: [<span class="pl-c1" style="color:#0086B3;">String</span>]) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">strings</span>(<span class="pl-en" style="color:#795DA3;">byAppendingPaths</span> <span class="pl-smi">paths</span>: [<span class="pl-c1" style="color:#0086B3;">String</span>]) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> [<span class="pl-c1" style="color:#0086B3;">String</span>] <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">substringFromIndex</span>(index: Index) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">substring</span>(<span class="pl-en" style="color:#795DA3;">from</span> <span class="pl-smi">index</span>: Index) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">substringToIndex</span>(index: Index) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">substring</span>(<span class="pl-en" style="color:#795DA3;">to</span> <span class="pl-smi">index</span>: Index) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">substringWithRange</span>(aRange: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">substring</span>(<span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">aRange</span>: <span class="pl-c1" style="color:#0086B3;">Range</span><span class="pl-k" style="color:#A71D5D;">&lt;</span>Index<span class="pl-k" style="color:#A71D5D;">&gt;</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> localizedUppercaseString: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">var</span> localizedUppercase: <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">uppercaseStringWithLocale</span>(locale: NSLocale?) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">uppercaseString</span>(<span class="pl-en" style="color:#795DA3;">with</span> <span class="pl-smi">locale</span>: NSLocale?) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">writeToFile</span>( <span class="pl-k" style="color:#A71D5D;">-</span> path: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-en" style="color:#795DA3;">atomically</span> <span class="pl-smi">useAuxiliaryFile</span>:<span class="pl-c1" style="color:#0086B3;">Bool</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">encoding</span> <span class="pl-smi">enc</span>: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">-</span> ) throws <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">write</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">toFile</span> <span class="pl-smi">path</span>: <span class="pl-c1" style="color:#0086B3;">String</span>, <span class="pl-en" style="color:#795DA3;">atomically</span> <span class="pl-smi">useAuxiliaryFile</span>:<span class="pl-c1" style="color:#0086B3;">Bool</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">encoding</span> <span class="pl-smi">enc</span>: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">+</span> ) throws <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">writeToURL</span>( <span class="pl-k" style="color:#A71D5D;">-</span> url: NSURL, <span class="pl-en" style="color:#795DA3;">atomically</span> <span class="pl-smi">useAuxiliaryFile</span>: <span class="pl-c1" style="color:#0086B3;">Bool</span>, <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-en" style="color:#795DA3;">encoding</span> <span class="pl-smi">enc</span>: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">-</span> ) throws <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">write</span>( <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">to</span> <span class="pl-smi">url</span>: NSURL, <span class="pl-en" style="color:#795DA3;">atomically</span> <span class="pl-smi">useAuxiliaryFile</span>: <span class="pl-c1" style="color:#0086B3;">Bool</span>, <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-en" style="color:#795DA3;">encoding</span> <span class="pl-smi">enc</span>: NSStringEncoding <span class="pl-k" style="color:#A71D5D;">+</span> ) throws <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">stringByApplyingTransform</span>( <span class="pl-k" style="color:#A71D5D;">-</span> transform: <span class="pl-c1" style="color:#0086B3;">String</span>, reverse: <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">-</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">applyingTransform</span>( <span class="pl-k" style="color:#A71D5D;">+</span> transform: <span class="pl-c1" style="color:#0086B3;">String</span>, reverse: <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">+</span> ) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">String</span>? <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">containsString</span>(other: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">contains</span>(other: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">-</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedCaseInsensitiveContainsString</span>(other: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> <span class="pl-k" style="color:#A71D5D;">+</span> <span class="pl-k" style="color:#A71D5D;">public</span> <span class="pl-k" style="color:#A71D5D;">func</span> <span class="pl-en" style="color:#795DA3;">localizedCaseInsensitiveContains</span>(other: <span class="pl-c1" style="color:#0086B3;">String</span>) <span class="pl-k" style="color:#A71D5D;">-&gt;</span> <span class="pl-c1" style="color:#0086B3;">Bool</span> }</pre>
																																				</div>
<ul style="font-family:" font-size:16px;"="">
																																				<li>
																																					其它的修改：
																																				</li>
																																					</ul>
<div class="highlight highlight-source-diff" style="font-family:" font-size:16px;"="">
<pre> extension String { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public static func localizedNameOfStringEncoding(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    encoding: NSStringEncoding</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public static func localizedName(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    ofStringEncoding encoding: NSStringEncoding</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public static func pathWithComponents(components: [String]) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public static func path(withComponents components: [String]) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init?(UTF8String bytes: UnsafePointer)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init?(utf8String bytes: UnsafePointer)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func canBeConvertedToEncoding(encoding: NSStringEncoding) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func canBeConverted(toEncoding encoding: NSStringEncoding) -&gt; Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var capitalizedString: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var capitalized: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var localizedCapitalizedString: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var localizedCapitalized: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func capitalizedStringWithLocale(locale: NSLocale?) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func capitalized(with locale: NSLocale?) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func commonPrefixWithString(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    aString: String, options: NSStringCompareOptions) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func commonPrefix(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    with aString: String, options: NSStringCompareOptions = []) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func completePathIntoString(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    outputName: UnsafeMutablePointer= nil,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    caseSensitive: Bool,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    matchesIntoArray: UnsafeMutablePointer&lt;[String]&gt; = nil,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    filterTypes: [String]? = nil</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; Int</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func completePath(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    into outputName: UnsafeMutablePointer= nil,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    caseSensitive: Bool,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    matchesInto matchesIntoArray: UnsafeMutablePointer&lt;[String]&gt; = nil,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    filterTypes: [String]? = nil</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; Int</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func componentsSeparatedByCharactersInSet(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    separator: NSCharacterSet</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; [String]</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func componentsSeparatedByCharacters(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    in separator: NSCharacterSet</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; [String]</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func componentsSeparatedByString(separator: String) -&gt; [String]</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func componentsSeparated(by separator: String) -&gt; [String]</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func cStringUsingEncoding(encoding: NSStringEncoding) -&gt; [CChar]?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func cString(usingEncoding encoding: NSStringEncoding) -&gt; [CChar]?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func dataUsingEncoding(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    encoding: NSStringEncoding,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    allowLossyConversion: Bool = false</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; NSData?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func data(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    usingEncoding encoding: NSStringEncoding,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    allowLossyConversion: Bool = false</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; NSData?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func enumerateLinguisticTagsInRange(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range: Range,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    scheme tagScheme: String,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options opts: NSLinguisticTaggerOptions,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    orthography: NSOrthography?,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    _ body:</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-      (String, Range, Range, inout Bool) -&gt; ()</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  )</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func enumerateLinguisticTags(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    in range: Range,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    scheme tagScheme: String,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options opts: NSLinguisticTaggerOptions = [],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    orthography: NSOrthography? = nil,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    _ body:</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+      (String, Range, Range, inout Bool) -&gt; ()</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  )</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func enumerateSubstringsInRange(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range: Range,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options opts:NSStringEnumerationOptions,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    _ body: (</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-      substring: String?, substringRange: Range,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-      enclosingRange: Range, inout Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    ) -&gt; ()</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  )</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func enumerateSubstrings(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    in range: Range,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options opts:NSStringEnumerationOptions = [],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    _ body: (</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+      substring: String?, substringRange: Range,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+      enclosingRange: Range, inout Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    ) -&gt; ()</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  )</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func fileSystemRepresentation() -&gt; [CChar]</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var fileSystemRepresentation: [CChar]</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func getBytes(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    inout buffer: [UInt8],</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    maxLength maxBufferCount: Int,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    usedLength usedBufferCount: UnsafeMutablePointer,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    encoding: NSStringEncoding,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options: NSStringEncodingConversionOptions,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range: Range,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    remainingRange leftover: UnsafeMutablePointer</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func getBytes(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    inout buffer: [UInt8],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    maxLength maxBufferCount: Int,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    usedLength usedBufferCount: UnsafeMutablePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    encoding: NSStringEncoding,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options: NSStringEncodingConversionOptions = [],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    range: Range,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    remaining leftover: UnsafeMutablePointer</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func getLineStart(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    start: UnsafeMutablePointer,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    end: UnsafeMutablePointer,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    contentsEnd: UnsafeMutablePointer,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    forRange: Range</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  )</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func getLineStart(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    start: UnsafeMutablePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    end: UnsafeMutablePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    contentsEnd: UnsafeMutablePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    for range: Range</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  )</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func getParagraphStart(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    start: UnsafeMutablePointer,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    end: UnsafeMutablePointer,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    contentsEnd: UnsafeMutablePointer,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    forRange: Range</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  )</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func getParagraphStart(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    start: UnsafeMutablePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    end: UnsafeMutablePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    contentsEnd: UnsafeMutablePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    for range: Range</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  )</span> public init( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    contentsOfURL url: NSURL,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    contentsOf url: NSURL,</span> encoding enc: NSStringEncoding
   ) throws

   public init( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    contentsOfURL url: NSURL,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    contentsOf url: NSURL,</span> usedEncoding enc: UnsafeMutablePointer= nil
   ) throws

   public init?( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    CString: UnsafePointer,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    cString: UnsafePointer,</span> encoding enc: NSStringEncoding
   ) <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(format: String, _ arguments: CVarArgType...)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(format: String, _ arguments: CVarArg...)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(format: String, arguments: [CVarArgType])</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(format: String, arguments: [CVarArg])</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(format: String, locale: NSLocale?, _ args: CVarArgType...)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(format: String, locale: NSLocale?, _ args: CVarArg...)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(format: String, locale: NSLocale?, arguments: [CVarArgType])</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(format: String, locale: NSLocale?, arguments: [CVarArg])</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func lengthOfBytesUsingEncoding(encoding: NSStringEncoding) -&gt; Int</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func lengthOfBytes(usingEncoding encoding: NSStringEncoding) -&gt; Int</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func lineRangeForRange(aRange: Range) -&gt; Range</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func lineRange(for aRange: Range) -&gt; Range</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func linguisticTagsInRange(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range: Range,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    scheme tagScheme: String,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options opts: NSLinguisticTaggerOptions = [],</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    orthography: NSOrthography? = nil,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    tokenRanges: UnsafeMutablePointer&lt;[Range]&gt; = nil // FIXME:Can this be nil?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; [String]</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func linguisticTags(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    in range: Range,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    scheme tagScheme: String,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options opts: NSLinguisticTaggerOptions = [],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    orthography: NSOrthography? = nil,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    tokenRanges: UnsafeMutablePointer&lt;[Range]&gt; = nil // FIXME:Can this be nil?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; [String]</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var localizedLowercaseString: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var localizedLowercase: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func lowercaseStringWithLocale(locale: NSLocale?) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func lowercaseString(with locale: NSLocale?) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func maximumLengthOfBytesUsingEncoding(encoding: NSStringEncoding) -&gt; Int</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func maximumLengthOfBytes(usingEncoding encoding: NSStringEncoding) -&gt; Int</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func paragraphRangeForRange(aRange: Range) -&gt; Range</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func paragraphRange(for aRange: Range) -&gt; Range</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func rangeOfCharacterFromSet(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    aSet: NSCharacterSet,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options mask:NSStringCompareOptions = [],</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range aRange: Range? = nil</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; Range?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func rangeOfCharacter(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    from aSet: NSCharacterSet,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options mask:NSStringCompareOptions = [],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    range aRange: Range? = nil</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; Range?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func rangeOfComposedCharacterSequenceAtIndex(anIndex: Index) -&gt; Range</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func rangeOfComposedCharacterSequence(at anIndex: Index) -&gt; Range</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func rangeOfComposedCharacterSequencesForRange(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range: Range</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; Range</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func rangeOfComposedCharacterSequences(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    for range: Range</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; Range</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func rangeOfString(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    aString: String,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options mask: NSStringCompareOptions = [],</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range searchRange: Range? = nil,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    locale: NSLocale? = nil</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; Range?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func range(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    of aString: String,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options mask: NSStringCompareOptions = [],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    range searchRange: Range? = nil,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    locale: NSLocale? = nil</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; Range?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func localizedStandardContainsString(string: String) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func localizedStandardContains(string: String) -&gt; Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func localizedStandardRangeOfString(string: String) -&gt; Range?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func localizedStandardRange(of string: String) -&gt; Range?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringByAbbreviatingWithTildeInPath: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var abbreviatingWithTildeInPath: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByAddingPercentEncodingWithAllowedCharacters(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    allowedCharacters: NSCharacterSet</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func addingPercentEncoding(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    withAllowedCharaters allowedCharacters: NSCharacterSet</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByAddingPercentEscapesUsingEncoding(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    encoding: NSStringEncoding</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func addingPercentEscapes(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    usingEncoding encoding: NSStringEncoding</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByAppendingFormat(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    format: String, _ arguments: CVarArgType...</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func appendingFormat(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    format: String, _ arguments: CVarArg...</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByAppendingPathComponent(aString: String) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func appendingPathComponent(aString: String) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByAppendingPathExtension(ext: String) -&gt; String?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func appendingPathExtension(ext: String) -&gt; String?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByAppendingString(aString: String) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func appending(aString: String) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringByDeletingLastPathComponent: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var deletingLastPathComponent: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringByDeletingPathExtension: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var deletingPathExtension: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringByExpandingTildeInPath: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var expandingTildeInPath: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByFoldingWithOptions(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options: NSStringCompareOptions, locale: NSLocale?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func folding(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options: NSStringCompareOptions = [], locale: NSLocale?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByPaddingToLength(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    newLength: Int, withString padString: String, startingAtIndex padIndex: Int</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func padding(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    toLength newLength: Int,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    with padString: String,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    startingAt padIndex: Int</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringByRemovingPercentEncoding: String?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var removingPercentEncoding: String?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByReplacingCharactersInRange(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range: Range, withString replacement: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func replacingCharacters(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    in range: Range, with replacement: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByReplacingOccurrencesOfString(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    target: String,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    withString replacement: String,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    options: NSStringCompareOptions = [],</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    range searchRange: Range? = nil</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func replacingOccurrences(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    of target: String,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    with replacement: String,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    options: NSStringCompareOptions = [],</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    range searchRange: Range? = nil</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByReplacingPercentEscapesUsingEncoding(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    encoding: NSStringEncoding</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func replacingPercentEscapes(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    usingEncoding encoding: NSStringEncoding</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringByResolvingSymlinksInPath: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var resolvingSymlinksInPath: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringByStandardizingPath: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var standardizingPath: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByTrimmingCharactersInSet(set: NSCharacterSet) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func trimmingCharacters(in set: NSCharacterSet) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringsByAppendingPaths(paths: [String]) -&gt; [String]</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func strings(byAppendingPaths paths: [String]) -&gt; [String]</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func substringFromIndex(index: Index) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func substring(from index: Index) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func substringToIndex(index: Index) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func substring(to index: Index) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func substringWithRange(aRange: Range) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func substring(with aRange: Range) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var localizedUppercaseString: String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var localizedUppercase: String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func uppercaseStringWithLocale(locale: NSLocale?) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func uppercaseString(with locale: NSLocale?) -&gt; String</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func writeToFile(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    path: String, atomically useAuxiliaryFile:Bool,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    encoding enc: NSStringEncoding</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) throws</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func write(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    toFile path: String, atomically useAuxiliaryFile:Bool,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    encoding enc: NSStringEncoding</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) throws</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func writeToURL(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    url: NSURL, atomically useAuxiliaryFile: Bool,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    encoding enc: NSStringEncoding</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) throws</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func write(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    to url: NSURL, atomically useAuxiliaryFile: Bool,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    encoding enc: NSStringEncoding</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) throws</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stringByApplyingTransform(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    transform: String, reverse: Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; String?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func applyingTransform(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    transform: String, reverse: Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; String?</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func containsString(other: String) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func contains(other: String) -&gt; Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func localizedCaseInsensitiveContainsString(other: String) -&gt; Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func localizedCaseInsensitiveContains(other: String) -&gt; Bool</span> }
    • Miscellaneous changes.
 public struct EnumeratedIterator: ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public typealias Element = (index: Int, element: Base.Element)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public typealias Element = (offset: Int, element: Base.Element)</span> }

 public struct Array: ... {
   // Same changes were also applied to `ArraySlice` and `ContiguousArray`. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(count: Int, repeatedValue: Element)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(repeating: Element, count: Int)</span> }

 public protocol Sequence : ... {
   public func split( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    maxSplit: Int = Int.max,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    maxSplits maxSplits: Int = Int.max,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    allowEmptySlices: Bool = false,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    omittingEmptySubsequences: Bool = true,</span> @noescape isSeparator: (Iterator.Element) throws -&gt; Bool
   ) rethrows -&gt; [SubSequence]
 }

 extension Sequence where Iterator.Element : Equatable {
   public func split( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    separator: Iterator.Element,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    separator separator: Iterator.Element,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    maxSplit: Int = Int.max,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    maxSplits maxSplits: Int = Int.max,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    allowEmptySlices: Bool = false</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    omittingEmptySubsequences: Bool = true</span> ) -&gt; [AnySequence<iterator.element>] {
 }


 public protocol Sequence : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func lexicographicalCompare&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func lexicographicallyPrecedes&lt;</span> OtherSequence : Sequence where OtherSequence.Iterator.Element == Iterator.Element
   &gt;(
     other: OtherSequence,
     @noescape isOrderedBefore: (Iterator.Element, Iterator.Element) throws -&gt; Bool
   ) rethrows -&gt; Bool {
 }

 extension Sequence where Iterator.Element : Equatable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func lexicographicalCompare&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func lexicographicallyPrecedes&lt;</span> OtherSequence : Sequence where OtherSequence.Iterator.Element == Iterator.Element
   &gt;(
     other: OtherSequence
   ) -&gt; Bool {
 }

 public protocol Collection : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func prefixUpTo(end: Index) -&gt; SubSequence</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func prefix(upTo end: Index) -&gt; SubSequence</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func suffixFrom(start: Index) -&gt; SubSequence</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func suffix(from start: Index) -&gt; SubSequence</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  func prefixThrough(position: Index) -&gt; SubSequence</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  func prefix(through position: Index) -&gt; SubSequence</span> }

 // Changes to this protocol affect `Array`, `ArraySlice`, `ContiguousArray` and
 // other types.
 public protocol RangeReplaceableCollection : ... { <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(repeating repeatedValue: Iterator.Element, count: Int)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func replaceRange&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func replaceSubrange&lt;</span> C : CollectionType where C.Iterator.Element == Iterator.Element
   &gt;(
     subRange: Range, with newElements: C
   ) <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func insert(newElement: Iterator.Element, atIndex i: Int)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func insert(newElement: Iterator.Element, at i: Int)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func insertContentsOf&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func insert&lt;</span> S : Collection where S.Iterator.Element == Iterator.Element <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  &gt;(newElements: S, at i: Index)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  &gt;(contentsOf newElements: S, at i: Index)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func removeAtIndex(index: Int) -&gt; Element</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func remove(at index: Int) -&gt; Element</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func removeAll(keepCapacity keepCapacity: Bool = false)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func removeAll(keepingCapacity keepingCapacity: Bool = false)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func removeRange(subRange: Range)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func removeSubrange(subRange: Range)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func appendContentsOf(newElements: S)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func append(contentsOf newElements: S)</span> } <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+extension Set : SetAlgebra {}</span> public struct Dictionary<key :="" hashable,="" value=""> : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public typealias Element = (Key, Value)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public typealias Element = (key: Key, value: Value)</span> }

 public struct DictionaryLiteral<key, value=""> : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public typealias Element = (Key, Value)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public typealias Element = (key: Key, value: Value)</span> }

 extension String { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func appendContentsOf(other: String) {</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func append(other: String) {</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating appendContentsOf(newElements: S)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating append(contentsOf newElements: S)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func replaceRange&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func replaceSubrange&lt;</span> C: CollectionType where C.Iterator.Element == Character
   &gt;(
     subRange: Range, with newElements: C
   ) <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func replaceRange(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func replaceSubrange(</span> subRange: Range, with newElements: String
   ) <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func insert(newElement: Character, atIndex i: Index)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func insert(newElement: Character, at i: Index)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func insertContentsOf&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func insert&lt;</span> S : Collection where S.Iterator.Element == Character <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  &gt;(newElements: S, at i: Index)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  &gt;(contentsOf newElements: S, at i: Index)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func removeAtIndex(i: Index) -&gt; Character</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func remove(at i: Index) -&gt; Character</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public mutating func removeRange(subRange: Range)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public mutating func removeSubrange(subRange: Range)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  mutating func removeAll(keepCapacity keepCapacity: Bool = false)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  mutating func removeAll(keepingCapacity keepingCapacity: Bool = false)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(count: Int, repeatedValue c: Character)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(repeating repeatedValue: Character, count: Int)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public init(count: Int, repeatedValue c: UnicodeScalar)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(repeating repeatedValue: UnicodeScalar, count: Int)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var utf8: UTF8View { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var utf8: UTF8View { get set }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var utf16: UTF16View { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var utf16: UTF16View { get set }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var characters: CharacterView { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var characters: CharacterView { get set }</span> }

 public enum UnicodeDecodingResult { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Result(UnicodeScalar)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case EmptyInput</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  case Error</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case scalarValue(UnicodeScalar)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case emptyInput</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  case error</span> }

 public struct ManagedBufferPointer<value, element=""> : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var allocatedElementCount: Int { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var capacity: Int { get }</span> }

 public struct RangeIterator: ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var startIndex: Element { get set }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var endIndex: Element { get set }</span> }

 public struct ObjectIdentifier : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var uintValue: UInt { get }</span> }
 extension UInt { <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  /// Create a `UInt` that captures the full value of `objectID`.</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(_ objectID: ObjectIdentifier)</span> }
 extension Int { <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  /// Create an `Int` that captures the full value of `objectID`.</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(_ objectID: ObjectIdentifier)</span> } <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct Repeat: ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct Repeated: ... { ... }</span> public struct StaticString : ... { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var byteSize: Int { get }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public var utf8CodeUnitCount: Int { get }</span> // Use the 'String(_:)' initializer. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var stringValue: String { get }</span> }

 extension Strideable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stride(to end: Self, by stride: Stride) -&gt; StrideTo</span> } <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func stride(from start: T, to end: T, by stride: T.Stride) -&gt; StrideTo</span> extension Strideable { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func stride(through end: Self, by stride: Stride) -&gt; StrideThrough</span> } <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func stride(from start: T, through end: T, by stride: T.Stride) -&gt; StrideThrough</span> public func transcode&lt;
   Input : IteratorProtocol,
   InputEncoding : UnicodeCodec,
   OutputEncoding : UnicodeCodec
   where InputEncoding.CodeUnit == Input.Element&gt;(
   inputEncoding: InputEncoding.Type, _ outputEncoding: OutputEncoding.Type,
   _ input: Input, _ output: (OutputEncoding.CodeUnit) -&gt; Void, <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  stopOnError: Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  stoppingOnError: Bool</span> ) -&gt; Bool

 extension UnsafeMutablePointer { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public static func alloc(num: Int) -&gt; UnsafeMutablePointer</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(allocatingCapacity count: Int)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func dealloc(num: Int)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func deallocateCapacity(count: Int)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func initialize(newvalue: Memory)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func initializePointee(newValue: Pointee, count: Int = 1)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func move() -&gt; Memory</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func take() -&gt; Pointee</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func destroy()</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func destroy(count: Int)</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func deinitializePointee(count count: Int = 1)</span> } <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct COpaquePointer : ... { ... }</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public struct OpaquePointer : ... { ... }</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func unsafeAddressOf(object: AnyObject) -&gt; UnsafePointer</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func unsafeAddress(of object: AnyObject) -&gt; UnsafePointer</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func unsafeBitCast<t, u="">(x: T, _: U.Type) -&gt; U</t,></span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func unsafeBitCast<t, u="">(x: T, to: U.Type) -&gt; U</t,></span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func unsafeDowncast(x: AnyObject) -&gt; T</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func unsafeDowncast(x: AnyObject, to: T.Type) -&gt; T</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func print(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func print(</span> items: Any...,
   separator: String = " ",
   terminator: String = "\n", <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  inout toStream output: Target</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  inout to output: Target</span> ) <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func debugPrint(</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func debugPrint(</span> items: Any...,
   separator: String = " ",
   terminator: String = "\n", <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  inout toStream output: Target</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  inout to output: Target</span> )

 public struct Unmanaged{ <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func toOpaque() -&gt; COpaquePointer</span> }
 extension OpaquePointer { <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public init(bitPattern bits: Unmanaged)</span> }

 public enum UnicodeDecodingResult <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  : Equatable {</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public var isEmptyInput: Bool</span> } <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func readLine(stripNewline stripNewline: Bool = true) -&gt; String?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+public func readLine(strippingNewline strippingNewline: Bool = true) -&gt; String?</span> struct UnicodeScalar {
   // Use 'UnicodeScalar("\0")' instead. <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  init()</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public func escape(asASCII forceASCII: Bool) -&gt; String</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public func escaped(asASCII forceASCII: Bool) -&gt; String</span> }

 public func transcode&lt;
   Input : IteratorProtocol,
   InputEncoding : UnicodeCodec,
   OutputEncoding : UnicodeCodec
   where InputEncoding.CodeUnit == Input.Element
 &gt;( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  inputEncoding: InputEncoding.Type, _ outputEncoding: OutputEncoding.Type,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  _ input: Input, _ output: (OutputEncoding.CodeUnit) -&gt; Void,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  stoppingOnError stopOnError: Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  input: Input,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  from inputEncoding: InputEncoding.Type,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  to outputEncoding: OutputEncoding.Type,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  stoppingOnError stopOnError: Bool,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  sendingOutputTo processCodeUnit: (OutputEncoding.CodeUnit) -&gt; Void</span> ) -&gt; Bool

 extension UTF16 { <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  public static func measure&lt;</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  public static func transcodedLength&lt;</span> Encoding : UnicodeCodec, Input : IteratorProtocol
     where Encoding.CodeUnit == Input.Element
   &gt;( <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-    _: Encoding.Type, input: Input, repairIllFormedSequences: Bool</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    of input: Input,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    decodedAs sourceEncoding: Encoding.Type,</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+    repairingIllFormedSequences: Bool</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  ) -&gt; (Int, Bool)?</span> <span class="pl-mi1" style="color:#55A532;background-color:#EAFFEA;">+  ) -&gt; (count: Int, isASCII: Bool)? {</span> } <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public struct RawByte {}</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-final public class VaListBuilder {}</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-public func withVaList(</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  builder: VaListBuilder,</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">-  @noescape _ f: CVaListPointer -&gt; R)</span> <span class="pl-md" style="color:#BD2C00;background-color:#FFECEC;">--&gt; R</span></value,></key,></iterator.element></pre>
																																						</div>
																																						<h2 style="font-size:1.75em;font-family:;">
																																							<a id="user-content-第五部分-对已有代码的影响" class="anchor" href="https://github.com/Boxue/swift-api-design-guidelines/blob/master/SE0006-apply-api-guidelines-to-the-standard-library.md#%E7%AC%AC%E4%BA%94%E9%83%A8%E5%88%86-%E5%AF%B9%E5%B7%B2%E6%9C%89%E4%BB%A3%E7%A0%81%E7%9A%84%E5%BD%B1%E5%93%8D"></a>第五部分 对已有代码的影响
																																						</h2>
<p style="font-family:" font-size:16px;"=""> 这份提议为Swift代码带来了大量的破坏性改变，以至于我们需要一个转换工具把代码从Swift 2转换为Swift 3。这份提议中提及的API改动是这个转换工具主要的信息来源。除此之外，为了帮助编译器提供更好的错误信息并且在编辑器中弹出Fix-Its建议，标准库将把旧的名称标记为unavailable，并提供一个rename说明。
																																							</p>
<s><s><s><br />
</s></s></s> </p>
			     </div>

 		</div>
	</div>
  </div>
  
  
	<div class="site-footer container clearfix">   
	     <ul class="site-footer-links">
	       
	         <li><a href="http://www.swiftv.cn/news/page/lianxi"  >友情链接：</a></li>
	         <li><a href="http://www.swiftv.net"  target="_blank"  >Swift的那点事</a></li>
	         <li><a href="http://Letsswift.com/"  target="_blank"  >一起Swift</a></li>
	         <li><a href="http://www.ucai.cn/index.php?app=home&mod=Public&act=blogroll"  target="_blank"  >优才网</a></li>
	         <li><a href="http://www.9ria.com/"  target="_blank"  >9Ria游戏开发者社区</a></li>
	         <li><a href="http://www.swiftvip.cn"  >Swift中文网</a></li>
	         <li><a href="http://www.swift51.com/"  target="_blank"  >雨燕社区</a></li>
	         <li><a href="http://www.rupeng.com/friendsLink.shtml"  target="_blank"  >如鹏网(.NET/JAVA)</a></li>
	         <li><a href="http://www.ruanman.net"  target="_blank"  >软曼网</a></li>
	         <li><a href="https://mos.meituan.com/doc/about"  target="_blank"  >美团云</a></li>
	         <li><a href="http://www.maiziedu.com/"  target="_blank"  >麦子学院</a></li>
	         <li><a href="http://www.superqq.com/"  target="_blank"  >刚刚在线</a></li>
	         <li><a href="http://wgh.me/"  target="_blank"  >Sally</a></li>
	         <li><a href="http://www.oneapm.com/"  target="_blank"  >应用性能管理</a></li>
	         <li><a href="http://www.51ios.net/"  target="_blank"  >51iOS</a></li>
	         <li><a href="https://boxueio.com/"  target="_blank"  >泊学-全栈自学之路</a></li>
	         <li><a href="http://www.xsteach.com/"  target="_blank"  >邢帅教育</a></li>
	         <li><a href="http://www.i3done.com/"  target="_blank"  >3Done</a></li>
	         <li><a href="http://www.wyzc.com/"  target="_blank"  >我赢职场</a></li>
	         <li><a href="../page/qun.html"  >QQ群公布</a></li>
	         <li><a href="../page/yijian.html"  target="_blank"  >用户体验持续改进计划</a></li>
	     </ul>
	  
	  <div class="alert text-center"><a href="http://www.miitbeian.gov.cn/" target="_blank"> 粤ICP备14044760-1</a></div>
	</div>
	
	<div><script>window._bd_share_config={"common":{"bdSnsKey":{"tsina":"3474175605"},"bdText":"SwiftV课堂，是我见过的最有氛围的Swift视频学习站，体验很棒！小伙伴要不要一起来学习？限免哟~#SwiftV课堂#","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"3","bdPos":"left","bdTop":"214.5"}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script></div>



  
<div id="ScrollToTop" class="btnimg Button2" style="color: rgb(255, 255, 255);text-align: center; display: block; background-color: rgba(12, 173, 87, 0.69);padding: 11px; width: 60px;bottom:15px;">返回<br>顶部</div>
  <div id="login-modal" class="modal" data-url="/login/ajax"></div>
  <div id="modal" class="modal"></div>


<script src="http://static.vlms.cn/resources/js/jquery.form.min.js"></script>
<script src="http://static.vlms.cn/resources/js/bootstrapValidator.min.js"></script>
<script src="http://static.vlms.cn/resources/bootstrap/js/bootstrap.min.js"></script>
<script src="http://static.vlms.cn/resources/js/autocomplete.js"></script>
<script src="http://static.vlms.cn/resources/js/bootstrap-notify.js"></script>





  
  <!-- 统计代码 -->
  <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?1e733c39d359b2149cd361e97999460b";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-52703035-1', 'auto');
  ga('send', 'pageview');
</script>


  </body>
</html>